merge

infix fun IntRange.merge(other: IntRange): IntRange(source)

Creates a union of this and the other range if they overlap, otherwise returns LongRange.EMPTY.